package pe.candyncoffee.mytrace.message;

public class MessageItem {
	public static final int MSG_RECEIVED = 0;
	public static final int MSG_SENT = 1;
	
	public int id;
	public String user_id;
	public int receivedOrSent = MSG_RECEIVED;
	public String message;
	public long date;
	
	public MessageItem(){
	}
	public MessageItem(int id, String user_id, int receivedOrSent, String message, long date) {
		this.id = id;
		this.user_id = user_id;
		this.receivedOrSent = receivedOrSent;
		this.message = message;
		this.date = date;
	}
	public MessageItem(String user_id, int receivedOrSent, String message, long date) {
		this.id = -1;
		this.user_id = user_id;
		this.receivedOrSent = receivedOrSent;
		this.message = message;
		this.date = date;
	}
}
